import request from '@/utils/request'
import da from "element-ui/src/locale/lang/da";

//获取所有项目
export function getAllProjectNeedApprove(data){
    return request({
        url: "/contractApprove/getProjectlist/" + data,
        method: "get",
    })
}

//查询项目
export function reqContractConditionSer(pagInfo,data) {
    return request({
        url: "/contractApprove/project/querybyOption/" + pagInfo,
        method: "post",
        data: data
    })
}

//根据projectId查询成交合同信息
export function reqApproveGetContract(projectId) {
    return request({
        url: "/contractApprove/getContract/" + projectId,
        method: "get",
    })
}

//成交合同审批通过
export function reqsubmitContractApprove(data) {
    return request({
        url: "/contractApprove/project/submitApprove",
        method: "post",
        data: data
    })
}

//成交合同审批退回
export function reqreturnContractApprove(data) {
    return request({
        url: "/contractApprove/project/returnApprove",
        method: "post",
        data: data
    })
}

//根据projectId获取成交供应商
export function reqContractSupplierQuotation(data) {
    return request({
        url: "/ContractSupplierQuotation/manage",
        method: "post",
        data: data
    })
}

// 下载成交合同
export function downloadContractApprove(data){
    return request({
        url: "/contractApprove/downloadcontract/" +data,
        method: "get"
    })
}